﻿<include file="nav" />
<div class="nav">首页 &gt; <a href="{$$MO_ROOT}{$$MO_APP_ENTRY}?m=admin&a=catlist">类别管理</a> 
&nbsp;|&nbsp;<a href="{$$MO_ROOT}{$$MO_APP_ENTRY}?m=admin&a=articleedit">发表文章</a>
</div>
<div class="right_main_b">当前路径： <a href="{$$MO_ROOT}{$$MO_APP_ENTRY}?m=admin&a=catlist">根类别</a>
<foreach name="pathlist" type="object">
 &gt; <a href="{$$MO_ROOT}{$$MO_APP_ENTRY}?m=admin&a=catlist&pid={$pathlist.ID}">{$pathlist.Class_Name}</a>
</foreach>
<table width="100%" cellpadding="3" cellspacing="0" border="1" bordercolor="#a0b2d2">
<tr>
<th class="head" width="40">ID</th>
<th class="head">名称</th>
<th class="head">标签</th>
<th class="head">排序</th>
<th class="head">操作</th>
</tr>
<loop name="classes">
<tr>
<td align="center">{$classes.ID}</td>
<td align="center">{$classes.Class_Name}</td>
<td align="center">{$classes.Class_Tag}</td>
<td align="center">{$classes.Class_Order}</td>
<td align="center"><a href="{$$MO_ROOT}{$$MO_APP_ENTRY}?m=admin&a=catlist&id={$classes.ID}&pid={$pid}">编辑</a> | 
<a href="{$$MO_ROOT}{$$MO_APP_ENTRY}?m=admin&a=catlist&pid={$classes.ID}">子项</a> | 
<a href="{$$MO_ROOT}{$$MO_APP_ENTRY}?m=admin&a=deletecat&id={$classes.ID}&pid={$pid}" onclick="return window.confirm('确定要删除本记录吗？');">删除</a></td>
</tr>
</loop>
</table>
</div>
<div class="right_main">
<form action="{$$MO_ROOT}{$$MO_APP_ENTRY}?m=admin&a=savecat" method="post">
<input type="hidden" name="Class_Type" value="{$pid}" />
<input type="hidden" name="ID" value="{$id}" />
名称:<input type="text" class="inputText" name="Class_Name" value="{$Class_Name}" /> 
排序:<input type="text" class="inputText width_50" name="Class_Order" value="{$Class_Order}" /> 
标签:<input type="text" class="inputText width_50" name="Class_Tag" value="{$Class_Tag}" /> 
<input type="submit" class="inputButton" value="<gt name="id" value="0" type="number">修改</else>添加</gt>" />
</form>
</div>
<include file="foot" />